<%@ Page Language="C#" AutoEventWireup="true" Title="Show Blogs" MasterPageFile="~/MainMaster.master" CodeFile="blogPost.aspx.cs" Inherits="blogPost" %>

<%@ Register Src="../includes/DoctorMenu.ascx" TagName="DoctorMenu" TagPrefix="uc2" %>

<%@ Register Src="../includes/postMessage.ascx" TagName="postMessage" TagPrefix="uc1" %>
<%@ MasterType VirtualPath="~/MainMaster.master" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainTable" runat="server">
    <div class="heading_inner">
        <div class="heading_topic">
            <h2>Blogs : <asp:Label runat="server" ID="lblBlogName"></asp:Label></h2>
        </div>
    </div>

    <div class="cl"></div>
    <table align="center" border="0" cellpadding="0" cellspacing="0" width="549">
        <tr>
            <td align="center" class="bodytxt" style="height: 15px">
                <span style="color: #000000" class="page-heading">
                    <uc2:DoctorMenu ID="DoctorMenu1" runat="server" />
                </span>
            </td>
        </tr>
       
        <tr>
            <td class="bodytxt">
                <table bgcolor="#f4f4f4" border="0" cellpadding="0" cellspacing="0" width="549">
                    <tr>
                   
                        <td class="bodytxt" align="left">
                            <table cellpadding="0" cellspacing="0" border="0" width="100%">
                                <tr>
                                    <td colspan="2"></td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <asp:GridView runat="Server" ID="grdShowBlog" AutoGenerateColumns="false" Width="100%" HeaderStyle-BackColor="DarkGray" HeaderStyle-HorizontalAlign="Center" BorderStyle="Solid" AllowPaging="True" OnPageIndexChanging="grdShowBlog_PageIndexChanging">
                                            <Columns>
                                                <asp:BoundField HeaderText="Posted by" DataField="postedname">
                                                    <ItemStyle Width="15%" CssClass="bodytxt" />
                                                </asp:BoundField>
                                                <asp:BoundField HeaderText="Message" DataField="msgDescription">
                                                    <ItemStyle Width="70%" CssClass="bodytxt" />
                                                </asp:BoundField>
                                                <asp:BoundField HeaderText="Posted date" DataField="msgDate">
                                                    <ItemStyle Width="15%" CssClass="bodytxt" />
                                                </asp:BoundField>
                                            </Columns>
                                            <HeaderStyle BackColor="DarkGray" HorizontalAlign="Center" />
                                            <PagerSettings Position="TopAndBottom" />
                                            <PagerStyle HorizontalAlign="Right" />

                                        </asp:GridView>

                                        <asp:Label runat="server" ID="lblerr" Visible="false"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">&nbsp;</td>
                                </tr>
                                <tr>
                                    <td class="bodytxt">
                                        <uc1:postMessage ID="PostMessage1" PostFor="BlMessage" runat="server"></uc1:postMessage>
                                    </td>
                                </tr>
                            </table>
                        </td>
                        
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</asp:Content>
